//
//  UIImageView+.swift
//  QQ空间
//
//  Created by 叶竞泽 on 2017/5/8.
//  Copyright © 2017年 叶竞泽. All rights reserved.
//

import Foundation
import UIKit

extension UIImage {
    
    func resizeImage(image: UIImage) -> UIImage {
        let w = size.width * 0.5
        let h = size.height * 0.5
        return stretchableImage(withLeftCapWidth: Int(w), topCapHeight: Int(h))
    }
}
